package com.huqingshan.LenMore.model.dto;

import com.huqingshan.LenMore.model.enums.PRODUCTSTATUS;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Peng Wei
 * @Description Product产品表
 * @createTime 2022年03月25日 20:28:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDTO {

    private String id;

    private String productNum;

    @NotBlank(message = "产品名不能为空")
    private String productName;

    @NotBlank(message = "城市名不能为空")
    private String cityName;

    private Date DepartureTime;

    private String DepartureTimeStr;

    @NotBlank(message = "产品价格不能为空")
    private BigDecimal productPrice;

    private String productDesc;

    private PRODUCTSTATUS productStatus;

    private String productStatusStr;
}
